package com.sky.mapper;

import com.sky.annotation.AutoFill;
import com.sky.entity.DishFlavor;
import com.sky.enumeration.OperationType;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DishFlavorMapper {

    // ID查询菜品口味
    List<DishFlavor> queryFlavors(long dishId);

    // 批量插入
    void insertFlavorBatch(List<DishFlavor> flavors);

    // 批量修改
    void updateFlavorBatch(List<DishFlavor> updateFlavors);

    //批量删除
    void deleteFlavorBatch(List<Long> dishIds);

    //删除单条
    void deleteFlavorById(long id);

}
